package com.peng.order.feign;

import com.peng.pojo.UserInfoVO;
import com.peng.web.JsonResult;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author： Peng
 * @date： 2024/6/26
 * @version: 1.0
 */

@FeignClient(name="userService")
public interface UserClient {

    @GetMapping("/user/info/{userId}")
    JsonResult<UserInfoVO> getUserInfo(@PathVariable("userId") Long userId);
}
